]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Extend, don't replace GI_TYPELIB_PATH in gnome-shell launcher
authorAlexander Larsson <alexl@redhat.com>
Mon, 28 Feb 2011 20:34:48 +0000 (21:34 +0100)
committerAlexander Larsson <alexl@redhat.com>
Mon, 28 Feb 2011 20:38:46 +0000 (21:38 +0100)
Without this we can't support some gi typelibs being in system
directories.

src/gnome-shell.in

index 32bf81c637ed56606d18efda12ea58f6a4d089b4..dd5e9674c3aa5d349e8eb9e385075db18d67df3f 100755 (executable)
@@ -195,6 +195,8 @@ def start_shell(perf_output=None):
                 'NO_AT_BRIDGE'        : '1'})
 
     if running_from_source_tree:
+        if os.environ.has_key('GI_TYPELIB_PATH'):
+            typelib_dir = typelib_dir + ":" + os.environ.get('GI_TYPELIB_PATH')
         env.update({'GNOME_SHELL_DATADIR'  : data_dir,
                     'GI_TYPELIB_PATH'      : typelib_dir,
                     'GSETTINGS_SCHEMA_DIR' : data_dir })